package Logic;

import javax.swing.JFrame;

import GUI.ServerMainGUI;

/**
*	This class starts the server
 
*
*/

public class ServerInitialize {
			
	
	public static void main( String args[] ) 
	   {     
			ServerMainGUI ServerMainFrame = new ServerMainGUI();
			ServerMainFrame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
			ServerMainFrame.setResizable(false);
			ServerMainFrame.setSize( 842,471 ); // set frame size
			ServerMainFrame.setVisible( true ); // display frame
			//Loop to get the connected users
				while(true)
				{
					try {
						Thread.sleep(1000);
					} catch (InterruptedException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
					ServerMainFrame.usersConnected();
				}
	  } // end main
}
